package com.ren.article.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author RZY
 * @since 2022-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ReclArticle对象", description="")
public class ReclArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "美文唯一id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty(value = "美文作者id")
    @JsonProperty(value = "create_user_id")
    private Long createUserId;

    @ApiModelProperty(value = "第一标签")
    @JsonProperty(value = "first_tag")
    private String firstTag;

    @ApiModelProperty(value = "第二标签")
    @JsonProperty(value = "two_tag")
    private String secondTag;

    @ApiModelProperty(value = "第三标签")
    @JsonProperty(value = "third_tag")
    private String thirdTag;

    @ApiModelProperty(value = "美文分类标题")
    @JsonProperty(value = "article_classify")
    private String articleClassify;

    @ApiModelProperty(value = "美文标题")
    @JsonProperty(value = "article_title")
    private String articleTitle;

    @ApiModelProperty(value = "美文内容")
    @JsonProperty(value = "article_content")
    private String articleContent;

    @ApiModelProperty(value = "美文封面地址")
    @JsonProperty(value = "article_cover")
    private String articleCover;

    @ApiModelProperty(value = "浏览量")
    @JsonProperty(value = "view_count")
    private Integer viewCount;

    @ApiModelProperty(value = "收藏量")
    @JsonProperty(value = "collection_title")
    private Integer collectionCount;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    @JsonProperty(value = "is_deleted")
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonProperty(value = "gmt_create")
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonProperty(value = "gmt_modified")
    private Date gmtModified;


}
